# -*- coding:utf-8 -*-

import unittest
from Common.Config import *
from TestCase.LoginCase import *
import os
from Common import HTMLTestReportCN


# 创建一个测试套件 == list
suite = unittest.TestSuite()

suite.addTests(unittest.TestLoader().loadTestsFromTestCase(TestCaseLogin))


if not os.path.exists(report_path):
    os.mkdir(report_path)
else:
    pass
with open(report_path + report_file, 'wb') as report:
    runner = HTMLTestReportCN.HTMLTestRunner(stream=report, title=report_title, description=report_describe,
                                             tester=report_user)
    runner.run(suite)

# if __name__=="__main__":
#
#     runner = unittest.TextTestRunner()
#     runner.run(suite)	   #开始执行测试套件